import Vue from 'vue';
import VeeValidate from 'vee-validate';
import zh from './zh_CN.js';

const config = {
  errorBagName: 'errors', // change if property conflicts.
  fieldsBagName: 'valid_fields',
  delay: 0,
  locale: 'zh_CN',
  dictionary: {
    zh_CN: zh
  },
  strict: true,
  enableAutoClasses: false,
  classNames: {
    touched: 'touched', // the control has been blurred
    untouched: 'untouched', // the control hasn't been blurred
    valid: 'valid', // model is valid
    invalid: 'invalid', // model is invalid
    pristine: 'pristine', // control has not been interacted with
    dirty: 'dirty' // control has been interacted with
  }
};

Vue.use(VeeValidate, config);
